<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/jsp/cssAndScript.jsp"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@include file="/pages/head.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>鼎烜电力集团网络办公平台</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script src="${pageContext.request.contextPath}/common/js/My97DatePicker/WdatePicker.js"></script>
	</head>
	<body style="overflow:hidden;">		
		<div id="main_container">
			<div id="container_border">
				<div class="content_title">
					<h3 class="basedate_econTargetList_titleIcon">
						合同管理
					</h3>
					<div align="right">
								<si:role url="/contract/contractAction!gotoEditContract.action">
							   	 <a class="btn_grid_box btn_file_icon2"   href="javascript:void(0);" onclick="showDialog('鼎烜电力集团网络办公平台','<%=basePath%>contract/contractAction!gotoEditContract.action?bidBookCondition.bidStatus=1','500','350');">新建合同记录</a>
								</si:role>
					</div>
				</div>
				<div class="form_primary">
					<table border="0" cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td style="width:30%;" nowrap="nowrap" align="right">
								项目单位:<input id="condition.projectUnit" name="condition.projectUnit" />
								起始时间:<input readonly="readonly" onclick="WdatePicker();" id="condition.signDate" name="condition.signDate" type="text" value="${condition.signDate}" />
								结束时间:<input readonly="readonly" onclick="WdatePicker();" id="condition.endSignDate" name="condition.endSignDate" type="text" value="${condition.endSignDate}" />&nbsp;
								业务员:<select id="prodPriceData_subjectIdNew" name="condition.salesMan" >
												<option value="">---请选择---</option>
											<s:iterator id="userList" value="userList" status="status">
												<option value="${id}" <s:if test="id==condition.salesMan">selected="selected"</s:if>><s:property value="cname"/></option>
											</s:iterator>
										</select>
								<%--
								<a class="btn_grid_box btn_file_icon2"  style="margin-left:4px;" href="javascript:void(0);">查看
			            			<s:select id="userList" list="userList" onchange="changeUser(this.value)" name="user.id" headerKey="" headerValue="请选择" listKey="id" listValue="cname" value="id" theme="simple"/>
			            			的合同
			            		</a>
								 --%>
							</td>
							<td>
								<a class="btn_grid_box btn_search_file"  href="javascript:void(0);" onclick="searchContractBySearchKey();return false;">查询</a>
							</td>
						</tr>
					</table>
				</div>
				<p class="modle_hr"></p>
				<div class="window_1">
					<div id="_econTargetList_div_id">
						<%@include file="_contract.jsp"%>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript">
	
	//function changeUser(userId){
		//var url = "<%=basePath %>contract/contractAction!findAllContract.action?id="+userId;
		//location.href=url;
	 //}
	 
</script>
</html>